package com.linln.common.utils;

import java.util.Map;

/**
 * key-value键值对工具栏
 * Created by Administrator on 2020-02-17.
 */
public class MapUtil {
    public static String getKey(Map<String,String> map, String v) {
        String key = "";
        for (Map.Entry<String, String> m :map.entrySet())  {
            if (m.getValue().equals(v)) {
                key = m.getKey();
            }}
        return key;
    }
}
